package cn.edu.zut.domain;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@JsonIgnoreProperties(value = {"handler"})
public class Contest implements Serializable {
    private static final long serialVersionUID = 8231814381122121576L;
    private int contestId;
    private String contestName;
    private String contestIntroduction;
    private String contestTime;
    private String contestNote;

    public Contest() {
    }

    public Contest(String contestName, String contestIntroduction, String contestTime, String contestNote) {
        this.contestName = contestName;
        this.contestIntroduction = contestIntroduction;
        this.contestTime = contestTime;
        this.contestNote = contestNote;
    }

    public Contest(int contestId, String contestName, String contestIntroduction, String contestTime, String contestNote) {
        this.contestId = contestId;
        this.contestName = contestName;
        this.contestIntroduction = contestIntroduction;
        this.contestTime = contestTime;
        this.contestNote = contestNote;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return "Contest{" +
                "contestId=" + contestId +
                ", contestName='" + contestName + '\'' +
                ", contestIntroduction='" + contestIntroduction + '\'' +
                ", contestTime='" + contestTime + '\'' +
                ", contestNote='" + contestNote + '\'' +
                '}';
    }

    public int getContestId() {
        return contestId;
    }

    public void setContestId(int contestId) {
        this.contestId = contestId;
    }

    public String getContestName() {
        return contestName;
    }

    public void setContestName(String contestName) {
        this.contestName = contestName;
    }

    public String getContestIntroduction() {
        return contestIntroduction;
    }

    public void setContestIntroduction(String contestIntroduction) {
        this.contestIntroduction = contestIntroduction;
    }

    public String getContestTime() {
        return contestTime;
    }

    public void setContestTime(String contestTime) {
        this.contestTime = contestTime;
    }

    public String getContestNote() {
        return contestNote;
    }

    public void setContestNote(String contestNote) {
        this.contestNote = contestNote;
    }
}
